<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
${aier_doctype}
<html <s:property value="aier_html_xmlns" escape="false"/>>
<head>
<meta http-equiv="Content-Type" content="${aier_content_type}" />
<title><s:property value="ev_title" />
</title>
<meta name="keywords" content="${aier_keyworks}" />
<meta name="description" content="${aier_description}" />
<script type="text/javascript" src="${aier_js_url}j.js"></script>
<script type="text/javascript" src="${aier_js_url}b.js"></script>
</head>
<style type="text/css">
.sl {
	margin-left: 60px;
	margin-top: -35px
}
</style>
<body>
<table style="width: 90%;height: 90%;">
	<tr><td width=20%>
			<s:action name="loginLeft" namespace="/zxadmin" executeResult="true"></s:action>

		</td>
		<td width=80%>
			<div>
				视频代理商管理
		
				<div id="videoDatasDiv">
					
				</div>
		
			</div>
		</td>
	</tr>
</table>


</body>

<script type="text/javascript">
		//显示信息
		function displayDatasDiv() {
			var fun = function(data) {

				for ( var i = 0; i < data.vilist.length; i++) {
					var tsn = data.vilist[i];
					var ul = document.getElementById("videoDatasDiv");
					var temp = "<div id='viDelDatas_"+tsn.vid+"'><div><div><p><span>设备sn:</span></p></div><div class='sl'>" + tsn.sn +"</div></div><div><div><p><span>状态:</span></p></div><div class='sl'>" +tsn.state + "</div></div><div><div><p><span>用户名:</span></p></div><div class='sl'>" + tsn.user + "</div></div><div><div><p><span>密码:</span></p></div><div class='sl'>" + tsn.pwd + "</div></div><div><div><p><span>URL:</span></p></div><div class='sl'>" + tsn.url + "</div></div><div><div><p><span>设备厂家:</span></p></div><div class='sl'>" + tsn.supplier + "</div></div><div><div><button value='修改' id='enUpdate_"+ tsn.vid+ "'onclick='updateDataDIV("+ tsn.vid+ ")'>修改</button></div><div><button value='删除' id='enDelete_"+ tsn.vid+ "'onclick='DeleteD("+ tsn.vid+ ")'>删除</button></div></div></div>";
					ul.innerHTML += temp;

				}
				;

			};

			exeAjax(ajaxUrl("${aier_url}zxadminjs/videoManage_list${aier_suffix}"),
					fun, {});

		}
		displayDatasDiv();
</script>
</html>